
;@-------------------------------------------------------------------
;@-------------------------------------------------------------------

.equ UART0_THR, 0x02500000

.globl _start
_start:
    b   reset

reset:
    mov r0,sp
    mov sp,#0x42000000
    add sp,sp,#0x1000


    ;@ enable fpu
    mrc p15, 0, r0, c1, c0, 2
    orr r0,r0,#0x300000 ;@ single precision
    orr r0,r0,#0xC00000 ;@ double precision
    mcr p15, 0, r0, c1, c0, 2
    mov r0,#0x40000000
    fmxr fpexc,r0

	;@ UART: print 'A' 
	ldr r4, =UART0_THR
	mov r0, #65
	str r0, [r4]
	mov r0, #13
	str r0, [r4]
	mov r0, #10
	str r0, [r4]

hang: b hang


;@-------------------------------------------------------------------
;@-------------------------------------------------------------------
